import requests

import app
class LoginAPI():

    def __init__(self):
        self.url_login=app.Base_Url+"mlogin"

    def login(self,username,password):
        data={
            "username":username,
            "password":password
        }
        return requests.post(url=self.url_login,data=data)